#+TITLE:GDB
#+AUTHOR:Joshua Branson
#+LATEX_HEADER: \usepackage{lmodern}
#+LATEX_HEADER: \usepackage[QX]{fontenc}

* GDB

** You can debug a C program in GDB with an argument with "set args"

gdb RET


(gdb) show args
Argument list to give program being debugged when it is started is "".

(gdb) set args -f hello.c
Argument list to give program being debugged when it is started is "hello.c".

run
